package co.crossoft.mapper;

import co.crossoft.domain.MiniShowBean;
import co.crossoft.domain.ResourceType;
import co.crossoft.domain.ResourceTypeResource;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("resourceTypeMapper")
public interface ResourceTypeMapper {

    public List<ResourceType> selectByHandle(String handle);

    public List<ResourceType> selectByResType(Map map);

    public void deleteByHandle(String handle);

    public void addResourceType(ResourceType resourceType);

    public void updateResourceType(ResourceType resourceType);

    public void addResTypeAss(List<ResourceTypeResource> list);

    public void deleteAllResTypeAss(String resourceTypeFk);

    public List<MiniShowBean> unAssResourceList(String plant);

    public List<MiniShowBean> assResourceList(String resourceTypeFk);

}